<extend name="Public:base" />

<block name="content">
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><em class="glyphicon glyphicon-cloud-upload"></em> 
            {$type}         
            </h3>
        </div>
        
    </div>

    <div class="row margin-botton">
        <div class="col-sm-6 column">
            <div class="btn-group btn-group-md">
                <button class="btn btn-primary" type="button"> 留言列表</button>
       <!--          <button class="btn btn-default" type="button" onclick="doGoBatch('{:U('audit')}')"><em class="glyphicon glyphicon-ok-circle"></em> 审核</button> -->
                <button class="btn btn-default" type="button" onclick="doConfirmBatch('{:U('del', array('batchFlag' => 1))}', '确实要删除选择项吗？')"><em class="glyphicon glyphicon-remove-circle"></em> 删除</button>
            </div>
        </div>        
    </div>

    <div class="row">
        <div class="col-lg-12">
            <form action="" method="post" id="form_do" name="form_do">
                <div class="table-responsive">
                    <table class="table table-hover xyh-table-bordered-out">
                        <thead>
                            <tr class="active">
                                <th><input type="checkbox" id="check"></th>
                                <th>编号</th>
                                <th>留言</th>
                                <th>发布时间</th>
								<th>IP地址</th>
                                <th class="text-right">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        <foreach name='vlist' item='v'>
                        <tr>
                            <td><input type="checkbox" name="key[]" value="{$v.id}"></td>
                            <td>{$v.id}</td>
                            <td>
							
                                <p>
								
						
                                <div style=" float:left;"><strong>姓名：</strong></div>
								<div style=" float:left; width:90px;">{$v.username}</div>
								
							
								
								<div style=" float:left;"><strong>电话：</strong></div>
								
								<div style=" float:left; width:120px;">{$v.tel}</div>  
								
															
								
								
								<div style=" float:left;"><strong>邮箱：</strong></div>
								
								<div style=" float:left;">{$v.email}</div>
								
								</p>
		
								
                                <p style="clear:both;">
								
								<div style=" float:left;"><strong>渠道：</strong></div>
								
								<div style=" float:left; width:90px;">{$v.way}</div>
								
								<div style=" float:left;"><strong>紧急：</strong></div>
								<div style=" float:left; width:120px;">{$v.level} </div> 
								
								<div style=" float:left;"><strong>公司：</strong></div>
								
								
								<div style=" float:left;">{$v.company}</div>
								
								
								</p>
								 
								 
                                
                                <p style="clear:both; ">
                                <div style=" float:left;"><strong>需求：</strong></div>
								
								<div style=" float:left;">{$v.content}</div>
                                </p>
          
                             </td>   



							 
                            <td class="">

				<div style="padding-top:40px;"> {$v.post_time}</div>
					 
					 
                            </td>  

                            <td class="">

				<div style="padding-top:40px;"> {$v.ip}</div>
					 
					 
                            </td>   
							
                            <td class="text-right">                                
            
                                <div style="padding-top:40px;"><a href="javascript:;" onclick="toConfirm('{:U('del',array('id' => $v['id']), '')}', '确实要删除吗？')" class="label label-danger">删除</a></div>
                    
                            </td>
                        </tr>
                        </foreach>
                        </tbody>
                    </table>
                </div>
            </form>

            <div class="row clearfix">
                <div class="col-md-12 column">
                    <div class="xyh-page">
                        {$page}
                    </div>
                </div>
            </div>

            
        </div>
    </div>

    </block>